// File: jmcomic-core/src/main/java/dev/jukomu/jmcomic/exception/MissingAlbumPhotoException.java
package dev.jukomu.jmcomic.exception;

import java.util.Map;

/**
 * 对应Python的MissingAlbumPhotoException，表示请求的本子或章节不存在。
 */
public class MissingAlbumPhotoException extends ResponseUnexpectedException {
    public static final String DESCRIPTION = "不存在本子或章节异常";

    public MissingAlbumPhotoException(String message, Map<String, Object> context) {
        super(message, context);
    }

    public MissingAlbumPhotoException(String message, Map<String, Object> context, Throwable cause) {
        super(message, context, cause);
    }

    /**
     * 获取缺失的禁漫ID。
     *
     * @return 禁漫ID字符串
     */
    public String getErrorJmId() {
        return fromContext(ExceptionUtils.CONTEXT_KEY_MISSING_JM_ID);
    }
}